package com.leetcode.Offer;

public class JZ58_II {
    public String reverseLeftWords(String s, int n) {
        return new StringBuilder().append(s.substring(n,s.length())).append(s.substring(0,n)).toString();
    }

    public static void main(String[] args) {
        System.out.println(new JZ58_II().reverseLeftWords("abcdefg", 2));
    }
}
